


list1 = [123, 'abc', False]
for item in range(len(list1)):
    print(f"{item} -- {list1[item]}")

class_dict = {0: {'stu_no': 1001, 'stu_name': '王小二', 'age': 12, 'dep': '计算机网络'},
              1: {'stu_no': 1002, 'stu_name': '李小明', 'age': 12, 'dep': '计算机应用'}}

for i in range(len(class_dict)):
    print(class_dict[i]['stu_name'])

book_list = {'isbn': 9854573514768, 'name': 'python开发实例', 'price': 36.00, 'work': '人民邮电出版社'}
for k in book_list.keys():
    print(k)

for p in book_list.values():
    print(p)

